<script setup>
import { ref } from 'vue'
import { Delete, Edit } from '@element-plus/icons-vue'
const getJobVisible = ref(false)
const getJobForm = ref({
  name: '',
  age: '',
  education: '',
  experience: '',
  position: ''
})
// import { Switch } from '@element-plus/icons-vue'
const tableData = [
  {
    date: '2016-05-03',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles'
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles'
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles'
  },
  {
    date: 'JAVA开发岗',
    name: '湖南-长沙',
    address: '2016-05-01-2016-05-03'
  }
]
</script>

<template>
  <el-card class="box-card">
    <template #header>
      <div class="card-header">
        <h2 style="text-align: center; margin-top: auto; margin-bottom: auto">
          求职信息审核
        </h2>
      </div>
    </template>
    <el-form inline>
      <el-row :gutter="20">
        <el-col :span="6">
          <el-form-item label="岗位名称">
            <el-input
              v-model="input1"
              class="w-50 m-2"
              placeholder="请输入用户昵称"
              :suffix-icon="Search"
            />
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="审核状态" class="vertical-center">
            <el-select v-model="value" class="m-2" placeholder="请选择">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="排序方式">
            <el-select v-model="value" class="m-2" placeholder="最新发布">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item>
            <el-button type="primary" :icon="Search">搜索</el-button>

            <el-button type="info" plain>重置</el-button>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <el-divider style="margin-top: 0"></el-divider>
    <el-table :data="tableData" stripe style="width: 100%">
      <el-table-column
        prop="date"
        label="岗位名称"
        align="center"
        width="180"
      />
      <el-table-column prop="name" label="地址" align="center" width="180" />
      <el-table-column prop="address" label="薪资" align="center">
        <template #default="{ row }"> 5000-10000 </template></el-table-column
      >
      <el-table-column prop="address" label="状态" align="center">
        <template #default="{ row }">
          <el-tag type="success">已发布</el-tag>
        </template>
      </el-table-column>
      <el-table-column
        prop="address"
        label="最近修改时间"
        show-overflow-tooltip
      />
      <el-table-column prop="address" label="操作" align="center">
        <template #default="{ row }">
          <el-button-group>
            <el-button type="primary" size="mini" :icon="Edit"></el-button>
            <el-button type="danger" size="mini" :icon="Delete"></el-button>
          </el-button-group>
        </template>
      </el-table-column>
    </el-table>
  </el-card>
</template>

<style scoped></style>
